<?php
$this->pageTitle=Yii::app()->name . ' - Login';
?>

<div align="center">
	<div align="left" style="width:500px;border:1px solid #0088CC;background:#fff;padding:15px;margin-bottom:10px;">
		<h1>Вход</h1><br>
		<!--<p>Пожалуйста, заполните следующую форму с вашими Логин и паролем:</p>-->

		<div class="form">
			<?php $form=$this->beginWidget('CActiveForm', array('id'=>'login-form','enableAjaxValidation'=>true)); ?>

				<!--<p class="note"><span class="required">*</span> Обязательные поля.</p>-->

				<div class="row">
					<?php echo $form->labelEx($model,'username'); ?>
					<?php echo $form->textField($model,'username'); ?>
					<?php echo $form->error($model,'username'); ?>
				</div>

				<div class="row">
					<?php echo $form->labelEx($model,'password'); ?>
					<?php echo $form->passwordField($model,'password'); ?>
					<?php echo $form->error($model,'password'); ?>
					<!--<p class="hint">
						Hint: You may login with <tt>demo/demo</tt> or <tt>admin/admin</tt>.
					</p>-->
				</div>

				<!--<div class="row rememberMe">
					<?php echo $form->checkBox($model,'rememberMe'); ?>
					<?php echo $form->label($model,'rememberMe'); ?>
					<?php echo $form->error($model,'rememberMe'); ?>
				</div>-->

				<div class="row submit">
					<?php 
						$this->widget('bootstrap.widgets.TbButton', array(
							'label' => 'Вход',
							'buttonType' => 'submit',
							'size' => 'Normal', 
						));						
					?>
					<img style="float:right;padding-right:10px;" src="http://screenshots.en.sftcdn.net/blog/en/2012/09/settings-icon.png" width="128" alt=""/>		
				</div>

			<?php $this->endWidget(); ?>
		</div><!-- form -->
	</div>
</div>

<?php
$form = new CForm(array(
    'elements'=>array(
        'username'=>array(
            'type'=>'text',
            'maxlength'=>32,
        ),
        'password'=>array(
            'type'=>'password',
            'maxlength'=>32,
        ),
        'rememberMe'=>array(
            'type'=>'checkbox',
        )
    ),

    'buttons'=>array(
        'login'=>array(
            'type'=>'submit',
            'label'=>'Login',
        ),
    ),
), $model);
?>